#!/usr/bin/env python 
# -*- coding:utf-8 -*-

# print(user.user_id + "\n")
import pygame

from source import *

title_form = pygame.font.Font("font/方正舒体__GBK.ttf", 40)
start_but_rect.left = (width - start_but_rect.width) / 2
start_but_rect.top = 450
rank_but_rect.left = (width - rank_but_rect.width) / 2
rank_but_rect.top = start_but_rect.top + 50
volume1_button_rect.left = (width - volume1_button_rect.width) / 2
volume1_button_rect.top = rank_but_rect.top + 50
show_way_rect.left = (width - volume1_button_rect.width) / 2
show_way_rect.top = volume1_button_rect.top + 50
logout_but_rect.left = (width - logout_but_rect.width) / 2
logout_but_rect.top = show_way_rect.top + 50
button_end_rect.left = (width - register_but_rect.width) / 2
button_end_rect.top = logout_but_rect.top + 50

choice = 0
clock = pygame.time.Clock()
paint_set = False
H_j = 20
H_y = -9
H_i = (height - image_bg_set1_rect.bottom + image_bg_set1_rect.top) / 2 + image_bg_set1_rect.bottom
volume_bg_pos = 220
volume_effect_pos = 220
button_volume1_rect.left = volume_bg_pos
button_volume2_rect.left = volume_effect_pos